package cn.kgc.service.desktop;

import cn.kgc.pojo.*;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface TaskService {

    /**
     * 请假申请
     *
     * @param begintime
     * @return
     */
    Page<Leaveuser> selLeave( Integer jt_id,
                             String begintime,
                              String name,
                              String state,
                              Integer id );

    int updLeave(Integer id, Integer state);

    /**
     * 车辆申请查询
     *
     * @param usetime
     * @return
     */
    Page<Cars> selCara(String usetime,
                       String name,
                       String state,
                       Integer id);

    int updCar(Integer id, Integer state, String approver);

    /**
     * 用章申请
     *
     * @param yzTime
     * @return
     */
    Page<Chap> selChapt(String yzTime,
                        String name,
                        String state,
                        Integer id);

    int updChapt(Integer id, Integer state,String approver);

    /**
     * 会议室申请
     *
     * @param ydtime
     * @return
     */
    Page<Meet> selMeet(String ydtime,
                       String name,
                       String state,
                       Integer id);

    int updMeet(Integer id, Integer state,String approver);

    /**
     * 名片申请
     *
     * @param createTime
     * @return
     */
    Page<Busin> selBusin(String createTime,
                         String name,
                         String state,
                         Integer id);

    int updBusin(Integer id, Integer state,String approver);

    /**
     * 出差申请
     *
     * @param begintime
     * @return
     */

    Page<Trre> selTrre(Integer jt_id,
                         String begintime,
                         String name,
                         String state,
                         Integer id);

    int updTrre(Integer id, Integer state,String approver);
}
